# 倒序输出字符串
s = input('请输入一段文本：')
i = len(s)-1
while i >= 0:
    print(s[i],end = "")
    i = i-1
